package com.hyh.springcloud.service;

import com.hyh.springcloud.result.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author Summerday
 */
@Component
@FeignClient(value = "cloud-payment-service")
public interface PaymentFeignClient {

    @GetMapping("/payment/{id}")
    AjaxResult getById(@PathVariable("id") Long id);

    @GetMapping("/payment/timeOut")
    String paymentTimeOut();
}
